﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Crossroad.Utils.Helper;

namespace Crossroad.Core.Exceptions
{
    public class LogicException : Exception
    {
        public int HttpCode { set; get; } = 422;

        public LogicException()
        { }

        public LogicException(string message) : base(message)
        {
            //LogHelper.Error(message);
        }

        public LogicException(string message, int httpCode) : base(message)
        {
            HttpCode = httpCode;
            //LogHelper.Error(message);
        }
    }
}
